﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Owl.Contracts;
using Owl.Questionnarie.Entities;
using Owl.Questionnarie.DAL;

namespace Owl.Questionnarie.BLL
{
    class SubjectBLL: ICrud<Subjects, Guid>
    {
        public Subjects GetById(Guid key)
        {
            return new SubjectDAL().GetById(key);
        }

        public List<Subjects> GetAll()
        {
            return new SubjectDAL().GetAll();
        }

        public Subjects Insert(Subjects entity)
        {
            return new SubjectDAL().Insert(entity);
        }

        public void Update(Subjects entity)
        {
            new SubjectDAL().Update(entity);
        }

        public void Delete(Guid key)
        {
            new SubjectDAL().Delete(key);
        }


        public List<Subjects> GetByString(string text)
        {
            return new SubjectDAL().GetByString(text);
        }
    }
}
